package cn.t.web.device;


import cn.t.core.controller.BaseController;
import cn.t.dto.device.ApkDTO;
import cn.t.facade.device.ApkFacade;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 安卓apk管理表(Apk)服务入口
 *
 * @author s
 * @since 2024-07-2
 */
@Slf4j
@RestController
@RequestMapping("apk")

@AllArgsConstructor
public class ApkController extends BaseController<ApkDTO, ApkFacade> {

    /**
     * 新增apk
     */
    @PostMapping("/add")
    public Boolean add(@Validated @RequestBody ApkDTO req) {
        return facade.add(req);
    }

}

